From: Olaf Hering Date: Mon, 18 May 2020 14:44:00 +0000 (+0200) Subject: tools: use HOSTCC/CPP to compile rombios code and helper X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~247 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=475ffdbbf5778329319ef6f7bd6315c163163440;p=xen.git tools: use HOSTCC/CPP to compile rombios code and helper Use also HOSTCFLAGS for biossums while touching the code. Spotted by inspecting build logfile. Signed-off-by: Olaf Hering Acked-by: Andrew Cooper --- diff --git a/tools/firmware/rombios/Makefile b/tools/firmware/rombios/Makefile index 78237fd736..02abdb3038 100644 --- a/tools/firmware/rombios/Makefile +++ b/tools/firmware/rombios/Makefile @@ -19,7 +19,7 @@ clean: subdirs-clean distclean: clean BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c - gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c + $(CPP) -DBX_SMP_PROCESSORS=1 -P $< > _rombios_.c bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt @@ -29,6 +29,6 @@ BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c rm -f _rombios_.s biossums: biossums.c - gcc -o biossums biossums.c + $(HOSTCC) $(HOSTCFLAGS) -o biossums biossums.c -include $(DEPS_INCLUDE)